<?php

/**
 *
 * Friendly URL parser call.
 *
 * Вызов парсера ЧПУ
 *
 */

    $url = substr($_SERVER['REQUEST_URI'], 1);
    $url = explode('/', $url);
    if (count($url) > 1) {
        $className = 'FURL'.addslashes(ucfirst(strtolower($url[0])));
    } else {
        $className = 'FURLDefault';
    }
    if (class_exists($className)) {
        $params = null;
        eval('$params = '.$className.'::parse($_SERVER["REQUEST_URI"]);');
        $_GET = array_merge($_GET, $params);
    }
?>